#!/usr/bin/node
const err = console.error;

const len = process.argv.length,
      pid = process.argv[3],
      sig = process.argv[2];

if(isNaN(Number(pid))){
  err();
  process.exit(3);
}
if(len>4){
  err('More than 2command line parameters!');
  process.exit(2);
}
if(len<4){
  err('Less than 2 command line parameters!');
  process.exit(1);
}

process.kill(pid,sig);
